package com.alameda.mapper.statement;

import com.alameda.statement.pojo.StatementDO;
import com.alameda.statement.vo.StatementVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 数据报表 数据控制层
 *
 * @author Lv
 * @date 2024/07/11
 */
@SuppressWarnings("all")
@Mapper
public interface StatementMapper extends BaseMapper<StatementDO> {
    /**
     * 查询报表数据
     *
     * @param statementSql 报表sql
     * @return
     */
    @Select("${statementSql}")
    List<StatementVO> findStatement(@Param("statementSql") String statementSql);
}
